/**
 *  接口配置映射文件
 */
export const base_uri = 'http://39.98.83.77:9004'; 

const POST = 'post';
const GET = 'get';
const PUT = 'put'

export const __tenant = 'a3a4d757-9695-e140-bc4c-39f49e7f9a45';

export const Api = {
    // 登录
    Login: {
        token: {
            method: POST,
            url : base_uri + '/connect/token'
        }
        
    },
    // 资讯分类
    articleCatalog: {
        articleCatalog: {
            method: GET,
            url: base_uri + '/api/app/articleCatalog'
        }
    },
    // 资讯文章
    Article: {
        get_article: {
            method: GET,
            url: base_uri + '/api/app/article/'
        },
        get_article_id: {
            method: GET,
            url: base_uri + '/api/app/article/'
        }
    },
    // 用户配置
    AbpApplicationConfiguration: {
        get_application_configuration: {
            method: GET,
            url: base_uri + '/api/abp/application-configuration'
        }
    },
    // 常规工作
    routine: {
        routine: {
            method: GET,
            url: base_uri + '/api/app/routine'
        },
        complete: {
            method: PUT,
            url: base_uri + '/api/app/routine/complete'
        }
    },
    // 定期工作
    period: {
        period: {
            method: GET,
            url: base_uri + '/api/app/period'
        },
        complete: {
            method: PUT,
            url: base_uri + '/api/app/period/complete'
        }
    },
    // 会议工作
    meeting: {
        meeting: {
            method: GET,
            url: base_uri + '/api/app/meeting'
        },
        complete: {
            method: PUT,
            url: base_uri + '/api/app/meeting/complete'
        }
    },
    // 考试工作
    exam: {
        exam: {
            method: GET,
            url: base_uri + '/api/app/exam'
        },
        complete: {
            method: PUT,
            url: base_uri + '/api/app/exam/complete'
        }
    },
    // 培训工作
    training: {
        training: {
            method: GET,
            url: base_uri + '/api/app/training'
        },
        complete: {
            method: PUT,
            url: base_uri + '/api/app/training/complete'
        }
    },
    // 获取
    Vehicle: {
        get_vehicle: {
            method: GET,
            url: base_uri + '/api/app/vehicle'
        },
        post_vehicle: {
            method: POST,
            url: base_uri + '/api/app/vehicle'
        },
        put_vehicle: {
            method: PUT,
            url: base_uri + '/api/app/vehicle'
        },
        dispose: {
            method: PUT,
            url: base_uri + '/api/app/vehicle/dispose'
        }
    },
    // 修改密码
    User: {
        changePassword: {
            method: POST,
            url: base_uri + '/api/identity/my-profile/change-password'
        },
        existing: {
            method: GET,
            url: base_uri + '/api/app/user/existing'
        },
        passwordName: {
            method: PUT,
            url: base_uri + '/api/app/user/passwordName'
        },
        avatar: {
            method: PUT,
            url: base_uri + '/api/app/user/avatar'
        },
        user: {
            method: PUT,
            url: base_uri + '/api/app/user/'
        },
        get_user: {
            method: GET,
            url: base_uri + '/api/app/user/'
        }

    },
    // 认证相关接口
    certification: {
        changePassword: {
            method: POST,
            url: base_uri + '/api/identity/my-profile/change-password'
        },
        certification: {
            method: GET,
            url: base_uri + '/api/app/certification'
        },
        put_ertification: {
            method: PUT,
            url: base_uri + '/api/app/certification'
        }
    },
    // 文件上传接口
    file: {
        upload: {
            method: POST,
            url: base_uri + '/api/app/file/upload'
        },
        file: {
            method: GET,
            url: base_uri + '/api/app/file'
        }
    },
    // 用车记录接口
    useRecord: {
        useRecord: {
            method: GET,
            url: base_uri + '/api/app/useRecord'
        },
        post_useRecord: {
            method: POST,
            url: base_uri + '/api/app/useRecord'
        },
        begin: {
            method: PUT,
            url: base_uri + '/api/app/useRecord'
        },
        end: {
            method: PUT,
            url: base_uri + '/api/app/useRecord'
        },
        complete: {
            method: PUT,
            url: base_uri + '/api/app/useRecord'
        },
        cancel: {
            method: PUT,
            url: base_uri + '/api/app/useRecord'
        }
    },
    // 获取车辆品牌
    vehicleBrand: {
        vehicleBrand: {
            method: GET,
            url: base_uri + '/api/app/vehicleBrand'
        }
    },
    // 获取车辆车系
    vehicleSeries: {
        vehicleSeries: {
            method: GET,
            url: base_uri + '/api/app/vehicleSeries'
        }
    },
    // 获取车辆颜色
    vehicleColors: {
        colors: {
            method: GET,
            url: base_uri + '/api/app/vehicleColors/colors'
        }
    },
    // 获取车辆车牌
    vehiclePlate: {
        vehiclePlate: {
            method: GET,
            url: base_uri + '/api/app/vehiclePlate'
        }
    },
    // 认证模块
    account: {
        certification: {
            method: PUT,
            url: base_uri + '/api/app/account/certification'
        }
    },
    // 申请设备维护
    maintain: {
        maintain: {
            method: POST,
            url: base_uri + '/api/app/maintain'
        }
    },
    // 查询SN
    position: {
        position: {
            method: GET,
            url: base_uri + '/api/app/position'
        },
        history: {
            method: GET,
            url: base_uri + '/api/app/position/history'
        }
    },
    // 电子围栏
    Fence: {
        fence: {
            method: GET,
            url: base_uri + '/api/app/fence'
        }
    },
    // 电子围栏
    FenceRule: {
        fenceRule: {
            method: GET,
            url: base_uri + '/api/app/fenceRule'
        }
    },
    Violation: {
        violation: {
            method: GET,
            url: base_uri + '/api/app/violation'
        }
    },
    Verification: {
        verification: {
            method: GET,
            url: base_uri + '/api/app/verification'
        },
        check: {
            method: GET,
            url: base_uri + '/api/app/verification/check'
        }
    }
}
